package com.ruoyi.system.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface ImgResourceMapper {

    /**
     * 根据活动id删除图片资源
     *
     * @param map
     */
    void deleteImgResourceByActivityMap(Map map);

    /**
     * 插入图片资源
     *
     * @param src
     * @param type
     * @param sort
     * @param activityId
     */
    void insertImgResource(@Param("src")String src, @Param("type")String type, @Param("sort")int sort, @Param("activityId")Long activityId);
}
